<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>机器人页面</title>
  {include file='admin_src.html'}
</head>
<body>
    <div class="col-md-12" id="app">
        <div class="col-md-12 text-center robot-title">
                机器人列表
        </div>
        <div class="table-responsive robot-content">
            <table class="table">
                <tr class="warning">
                    <td>机器人ID</td>
                    <td>机器人名称</td>
                    <td>机器人账号</td>
                    <td>在线状态</td>
                </tr>
                <tr class="has" v-for="item in robotList.data">
                    <td>{{item.wxid}}</td>
                    <td>{{item.nickname}}</td>
                    <td>{{item.wx_num}}</td>
                    <td>{{item.status==1?'在线':'离线'}}</td>
                </tr>

            </table>
        </div>

    </div>
</body>
<script>
    var app = new Vue({
        el: '#app',
        data:function() {
            return {
                robotList:[],
            }
        },
        mounted:function(){
            this.getData()
        },
        methods:{
            getData:function (){
                var that = this;

                apiRequest(adminApi.Robot.getData,{},function (ret){
                    that.robotList = ret;
                })

            }
        }
    })
</script>
</html>